<template>
  <div>
    <bread-crumb :one="'平台管理'" :two="'接口映射'" :three="'编辑'"></bread-crumb>

    <el-form :model="formData" label-width="120px">
      <el-form-item label="接口名：">
        <el-input v-model="formData.interFace"></el-input>
      </el-form-item>
      <el-form-item label="组件名：">
        <el-input v-model="formData.bundle"></el-input>
      </el-form-item>
      <el-form-item label="版本：">
        <el-input v-model="formData.service"></el-input>
      </el-form-item>
      <el-form-item label="服务：">
        <el-input v-model="formData.version"></el-input>
      </el-form-item>
      <el-form-item label="备注：">
        <el-input v-model="formData.memo"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="handleSave">确定</el-button>
        <el-button type="primary" @click="handleCancel">取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
  import BreadCrumb from "@/components/BreadCrumb.vue";
  import {mixins} from "@/core";

  export default {
    components: {
      BreadCrumb
    },
    mixins: [mixins],
    data () {
      return {
        API: {
          save: "/gafe/save_service_map"
        },
        formData: {
          id: 0,
          interFace: "",
          bundle: "",
          service: "",
          version: "",
          memo: ""
        }
      }
    },
    mounted () {

    }
  }
</script>

<style scoped>
  .el-form {
    width: 500px;
  }
</style>
